package springboot.demo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import springboot.demo.pojo.Employee;

import java.util.List;

@Mapper
@Repository
public interface adminMapper {
    //遍历列表
    List<Employee> querryEmpList();

    //查询一个员工
    Employee selectEmpById(Integer id);

    //增加一个员工
    int inAddEmp(Employee employee);

    //修改一个员工
    int updateEmpById(Employee employee);

    //删除一个员工
    int deleteEmpById(Integer id);


}
